﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Moq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Commands;
using Commands.TorrentDownloaders;
using Microsoft.Practices.Unity;

namespace TestProject
{
    [TestClass()]
    public class CommandsTests
    {
        [TestMethod]
        public void TestCommonCommands()
        {
            // Check that common commands are well described.
            Assert.IsTrue(MethodsManager.IsListWellDescribed(new CommandsList(
                new Mock<IMailer>().Object, new Mock<ITorrentManager>().Object), new UnityContainer()));
        }

        [TestMethod]
        public void TestInternalCommands()
        {
            // Check that internal commands are well described.
            Assert.IsTrue(MethodsManager.IsListWellDescribed(new CommandsList(
                new Mock<IMailer>().Object, new Mock<ITorrentManager>().Object), new UnityContainer()));
        }

    }
}
